﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HA.Data
{

    public enum AutoAssignLayer
    {
        UseLayerRange,
        AutoAssignToOneCell,
        AutoAssignIncludingLowerCell
 
    }


    [Serializable]
   public class LayerRange:MapOptionItem,ICloneable
    {
        public LayerRange()
        {
            this._autoAssignLayer = AutoAssignLayer.UseLayerRange;
            this._fromLayer = 1;

            this._toLayer = 1;

        }



     



        AutoAssignLayer _autoAssignLayer;

        public AutoAssignLayer AutoAssignLayer
        {
            get { return _autoAssignLayer; }
            set { _autoAssignLayer = value; }
        }

        int _fromLayer;

        public int FromLayer
        {
            get { return _fromLayer; }
            set {


                if (value<1)
                {
                    value = 1;
                    
                }

                _fromLayer = value;
            
            
            }
        }

        int _toLayer;

        public int ToLayer
        {
            get { return _toLayer; }
            set {

                if (value<1)
                {
                    value = 1;
                    
                }
                _toLayer = value;
            
            }
        }



        #region 公共函数

        public void MaptoModFlow()
        {
 
        }


        #endregion


        public object Clone()
        {
            return this.MemberwiseClone();
        }
    }
}
